﻿<%= stylesheet_link_tag 'coderay' %>

<div class="resource">
	
    <h2 class="storytitle"><%= link_to h(resource.title), resource_path(resource.id) %></h2>
    <div class="meta">
        <span class="tags">
		Tag: <%= resource.tag_list.map{|tag|link_to(tag, tag_path(tag))}.join(', ') %>
        </span>
        &#8212;<span class="user"><%= link_to h(resource.user.login), "http://#{resource.user.login}.beyondrails.com", :style => "text-decoration: none" %> @ <%= resource.created_at.strftime("%Y年%m月%d日 %I:%M %p") %>
        </span>
    </div>
	
    <div class="storycontent">
    	<span class="resource_header">资源URL</span>: <%= link_to h(resource.url), resource.url %>
        <div class="CodeRay">
        	<span class="resource_header">资源描述</span>:
            <%= bbcode2html resource.description %>
        </div>
    </div>

</div>

